#pragma once
#include "afxwin.h"

// CCoordSysAdd dialog

class CCoordSysAdd : public CDialogEx
{
	DECLARE_DYNAMIC(CCoordSysAdd)

public:
	CCoordSysAdd(CWnd* pParent = NULL);   // standard constructor
	virtual ~CCoordSysAdd();
  void UpdateUI(void);

// Dialog Data
	enum { IDD = IDD_COORDSYS_ADD };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
  afx_msg void OnOk();
  afx_msg void OnCancel();
  afx_msg void OnStationSelChange();
  afx_msg void OnTypeSelChange();
  afx_msg void OnStationCheckChange();
  virtual BOOL OnInitDialog();

public:
  void FillCBByLines(CComboBox& cb);
  void FillCBByArcs(CComboBox& cb);

public:
  tstring Station(void) { return station_.GetBuffer(0); }
  tstring Name(void) { return name_.GetBuffer(0); }
  int Type(void) const { return type_; }
  tstring First(void) { return first_.GetBuffer(0); }
  tstring Second(void) { return second_.GetBuffer(0); }

private:
  CCheckListBox wnd_station_list_;
  CString station_;
  CString name_;
  CComboBox wnd_type_list_;
  int type_;
  CComboBox wnd_first_;
  CString first_;
  CComboBox wnd_second_;
  CString second_;
  CStatic wnd_label_first_;
  CStatic wnd_label_second_;
};
